(function() {

    const $input = document.querySelector('.ant-input')
    const $btn = document.querySelector('.ant-btn')

    $btn.addEventListener('click', function() {
        const value = $input.value
        if(!value) return
        
        window.location.replace(`/?email=${window.encodeURIComponent(value)}`)
    })
})()